package org.javacourse.service;

import javax.persistence.EntityManager;

/**
 * Created with IntelliJ IDEA.
 * User: tania.luchin
 * Date: 4/12/13
 * Time: 11:53 AM
 * To change this template use File | Settings | File Templates.
 */
public class AbstractService {

    protected EntityManager em;

    //TODO: se pastreaza EntityManagerFactory in loc de EntityManager

    public AbstractService(){
        //TODO: UtilService se apeleaza static (fara instantiere)
        UtilService utilService = new UtilService();
        this.em = utilService.getEntityManager();
    }

}
